package com.obas.integration.element.telnet.type;

import com.ease.common.enums.EnumUtil;
import com.ease.common.enums.TextualEnum;
import com.obas.type.MacAddressType;

public enum ZTEMacAddressType implements TextualEnum {

	DYNAMIC("Dynamic", MacAddressType.DYNAMIC);

	private String text;

	private MacAddressType macAddressType;

	private ZTEMacAddressType(String text, MacAddressType macAddressType) {
		this.text = text;
		this.macAddressType = macAddressType;
	}

	public static ZTEMacAddressType get(String name) {
		return EnumUtil.get(ZTEMacAddressType.class, name);
	}

	public static ZTEMacAddressType getByText(String text) {
		return EnumUtil.getByText(ZTEMacAddressType.class, text);
	}

	/**
	 * @return the text
	 */
	public String getText() {
		return text;
	}

	/**
	 * @return the macAddressType
	 */
	public MacAddressType getMacAddressType() {
		return macAddressType;
	}

	public String getName() {
		return name();
	}

}
